# coding=utf-8
import random

def testdemo():
    num = random.randint(1, 100)
    for i in range(5):
        answer = int(input('请输入你猜测的数字：'))

        if answer == num:
            print('恭喜你，猜对啦！')
            break
        elif answer > num:
            print('猜的太大了')
        else:
            print('猜的太小了')

if __name__ == '__main__':
    testdemo()
